package io.renren.modules.sys.dao;

import io.renren.modules.sys.entity.OrdersEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.sys.entity.ShelvesOrdersEntity;
import io.renren.modules.sys.entity.ShelvesOrdersStatisticsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-03-26 16:07:11
 */
@Mapper
public interface OrdersDao extends BaseMapper<OrdersEntity> {
    List<ShelvesOrdersEntity> getShelvesOrder(@Param("ordernum")String ordernum,@Param("shelvesid")Integer shelvesid,
                                              @Param("buyer")String buyer,@Param("startime")String startime, @Param("endtime")String endtime,
                                              @Param("currPage")int currPage, @Param("pageSize")int pageSize);

    ShelvesOrdersStatisticsEntity getStatistics(@Param("ordernum")String ordernum,@Param("shelvesid")Integer shelvesid,@Param("buyer")String buyer,
                                                @Param("startime")String startime, @Param("endtime")String endtime);

    int queryListcount(@Param("ordernum")String ordernum,@Param("shelvesid")Integer shelvesid,@Param("buyer")String buyer,
                       @Param("startime")String startime, @Param("endtime")String endtime);
	
}
